#include <stx/test/test.hpp>

TEST_CASE (core_lambda)
{
    CHECK(2 == ranges::count_if("hello"sv, 'l' == _1));
    CHECK(4 == ranges::count_if("hello"sv, _1 >= 'a' && _1 <= 'l'));
    CHECK(5 == ranges::count_if("hello"sv, ::islower));
    CHECK(5 == ranges::count_if("hello"sv, BIND(std::islower, _1)));
}